/**
 * output package name
 */
package com.kingdee.eas.hr.time.client;

import org.apache.log4j.*;

import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.border.*;
import javax.swing.BorderFactory;
import javax.swing.event.*;
import javax.swing.KeyStroke;

import com.kingdee.bos.ctrl.swing.*;
import com.kingdee.bos.ctrl.kdf.table.*;
import com.kingdee.bos.ctrl.kdf.data.event.*;
import com.kingdee.bos.dao.*;
import com.kingdee.bos.dao.query.*;
import com.kingdee.bos.metadata.*;
import com.kingdee.bos.metadata.entity.*;
import com.kingdee.bos.ui.face.*;
import com.kingdee.bos.ui.util.ResourceBundleHelper;
import com.kingdee.bos.util.BOSUuid;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.jdbc.rowset.IRowSet;
import com.kingdee.util.enums.EnumUtils;
import com.kingdee.bos.ui.face.UIRuleUtil;
import com.kingdee.bos.ctrl.swing.event.*;
import com.kingdee.bos.ctrl.kdf.table.event.*;
import com.kingdee.bos.ctrl.extendcontrols.*;
import com.kingdee.bos.ctrl.kdf.util.render.*;
import com.kingdee.bos.ui.face.IItemAction;
import com.kingdee.eas.framework.batchHandler.RequestContext;
import com.kingdee.bos.ui.util.IUIActionPostman;
import com.kingdee.bos.appframework.client.servicebinding.ActionProxyFactory;
import com.kingdee.bos.appframework.uistatemanage.ActionStateConst;
import com.kingdee.bos.appframework.validator.ValidateHelper;
import com.kingdee.bos.appframework.uip.UINavigator;


/** 
 * output class name
 */
public abstract class AbstractYearVactionListUI extends com.kingdee.eas.framework.client.CoreUI
{
    private static final Logger logger = CoreUIObject.getLogger(AbstractYearVactionListUI.class);
    protected com.kingdee.bos.ctrl.swing.KDPanel pnlBottom;
    protected com.kingdee.bos.ctrl.swing.KDTextField txtRuleName;
    protected com.kingdee.bos.ctrl.swing.KDLabelContainer kDLabelContainer1;
    protected com.kingdee.bos.ctrl.swing.KDLabelContainer kDLabelContainer2;
    protected com.kingdee.bos.ctrl.kdf.table.KDTable tblMain;
    protected com.kingdee.bos.ctrl.swing.KDComboBox combYear;
    protected com.kingdee.bos.ctrl.swing.KDComboBox combRule;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnUpdate;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnRefresh;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnPrint;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnPrintPrieve;
    protected javax.swing.JToolBar.Separator separator2;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnCalculate;
    protected com.kingdee.bos.ctrl.swing.KDWorkButton btnCarryforward;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuItemPrint;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuItemPrintView;
    protected javax.swing.JPopupMenu.Separator separator1;
    protected com.kingdee.bos.ctrl.swing.KDMenu menuView;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuRefresh;
    protected com.kingdee.bos.ctrl.swing.KDMenu menuBiz;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuUpdateBalance;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuCalculate;
    protected com.kingdee.bos.ctrl.swing.KDMenuItem menuCarrayforward;
    protected EntityViewInfo yearManageVacationQuery = null;
    protected IMetaDataPK yearManageVacationQueryPK;
    protected ActionUpdateBalance actionUpdateBalance = null;
    protected ActionRefresh actionRefresh = null;
    protected ActionCalculate actionCalculate = null;
    protected ActionCarryforward actionCarryforward = null;
    protected ActionPrint actionPrint = null;
    protected ActionPrintPrieve actionPrintPrieve = null;
    /**
     * output class constructor
     */
    public AbstractYearVactionListUI() throws Exception
    {
        super();
        this.defaultObjectName = "yearManageVacationQuery";
        jbInit();
        
        initUIP();
    }

    /**
     * output jbInit method
     */
    private void jbInit() throws Exception
    {
        this.resHelper = new ResourceBundleHelper(AbstractYearVactionListUI.class.getName());
        this.setUITitle(resHelper.getString("this.title"));
        yearManageVacationQueryPK = new MetaDataPK("com.kingdee.eas.hr.time.app", "YearVacationQuery");
        //actionUpdateBalance
        this.actionUpdateBalance = new ActionUpdateBalance(this);
        getActionManager().registerAction("actionUpdateBalance", actionUpdateBalance);
         this.actionUpdateBalance.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        //actionRefresh
        this.actionRefresh = new ActionRefresh(this);
        getActionManager().registerAction("actionRefresh", actionRefresh);
         this.actionRefresh.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        //actionCalculate
        this.actionCalculate = new ActionCalculate(this);
        getActionManager().registerAction("actionCalculate", actionCalculate);
         this.actionCalculate.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        //actionCarryforward
        this.actionCarryforward = new ActionCarryforward(this);
        getActionManager().registerAction("actionCarryforward", actionCarryforward);
         this.actionCarryforward.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        //actionPrint
        this.actionPrint = new ActionPrint(this);
        getActionManager().registerAction("actionPrint", actionPrint);
         this.actionPrint.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        //actionPrintPrieve
        this.actionPrintPrieve = new ActionPrintPrieve(this);
        getActionManager().registerAction("actionPrintPrieve", actionPrintPrieve);
         this.actionPrintPrieve.addService(new com.kingdee.eas.framework.client.service.PermissionService());
        this.pnlBottom = new com.kingdee.bos.ctrl.swing.KDPanel();
        this.txtRuleName = new com.kingdee.bos.ctrl.swing.KDTextField();
        this.kDLabelContainer1 = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
        this.kDLabelContainer2 = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
        this.tblMain = new com.kingdee.bos.ctrl.kdf.table.KDTable();
        this.combYear = new com.kingdee.bos.ctrl.swing.KDComboBox();
        this.combRule = new com.kingdee.bos.ctrl.swing.KDComboBox();
        this.btnUpdate = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.btnRefresh = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.btnPrint = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.btnPrintPrieve = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.separator2 = new javax.swing.JToolBar.Separator();
        this.btnCalculate = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.btnCarryforward = new com.kingdee.bos.ctrl.swing.KDWorkButton();
        this.menuItemPrint = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.menuItemPrintView = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.separator1 = new javax.swing.JPopupMenu.Separator();
        this.menuView = new com.kingdee.bos.ctrl.swing.KDMenu();
        this.menuRefresh = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.menuBiz = new com.kingdee.bos.ctrl.swing.KDMenu();
        this.menuUpdateBalance = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.menuCalculate = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.menuCarrayforward = new com.kingdee.bos.ctrl.swing.KDMenuItem();
        this.pnlBottom.setName("pnlBottom");
        this.txtRuleName.setName("txtRuleName");
        this.kDLabelContainer1.setName("kDLabelContainer1");
        this.kDLabelContainer2.setName("kDLabelContainer2");
        this.tblMain.setName("tblMain");
        this.combYear.setName("combYear");
        this.combRule.setName("combRule");
        this.btnUpdate.setName("btnUpdate");
        this.btnRefresh.setName("btnRefresh");
        this.btnPrint.setName("btnPrint");
        this.btnPrintPrieve.setName("btnPrintPrieve");
        this.separator2.setName("separator2");
        this.btnCalculate.setName("btnCalculate");
        this.btnCarryforward.setName("btnCarryforward");
        this.menuItemPrint.setName("menuItemPrint");
        this.menuItemPrintView.setName("menuItemPrintView");
        this.separator1.setName("separator1");
        this.menuView.setName("menuView");
        this.menuRefresh.setName("menuRefresh");
        this.menuBiz.setName("menuBiz");
        this.menuUpdateBalance.setName("menuUpdateBalance");
        this.menuCalculate.setName("menuCalculate");
        this.menuCarrayforward.setName("menuCarrayforward");
        // CoreUI
        // pnlBottom
        // txtRuleName		
        this.txtRuleName.setText(resHelper.getString("txtRuleName.text"));		
        this.txtRuleName.setEnabled(false);
        // kDLabelContainer1		
        this.kDLabelContainer1.setBoundLabelText(resHelper.getString("kDLabelContainer1.boundLabelText"));		
        this.kDLabelContainer1.setBoundLabelUnderline(true);		
        this.kDLabelContainer1.setBoundLabelLength(100);
        // kDLabelContainer2		
        this.kDLabelContainer2.setBoundLabelText(resHelper.getString("kDLabelContainer2.boundLabelText"));		
        this.kDLabelContainer2.setBoundLabelUnderline(true);		
        this.kDLabelContainer2.setBoundLabelLength(100);
        // tblMain
		String tblMainStrXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><DocRoot xmlns:c=\"http://www.kingdee.com/Common\" xmlns:f=\"http://www.kingdee.com/Form\" xmlns:t=\"http://www.kingdee.com/Table\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.kingdee.com/KDF KDFSchema.xsd\" version=\"0.0\"><Styles><c:Style id=\"sCol0\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol1\"><c:Protection locked=\"true\" hidden=\"true\" /></c:Style><c:Style id=\"sCol2\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol3\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol4\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol5\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol6\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol7\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol8\"><c:Protection locked=\"true\" /><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol9\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol10\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol11\"><c:Protection locked=\"true\" /><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol12\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol13\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol14\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol15\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol16\"><c:Alignment horizontal=\"right\" /></c:Style><c:Style id=\"sCol17\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol18\"><c:Protection locked=\"true\" /></c:Style></Styles><Table id=\"KDTable\"><t:Sheet name=\"sheet1\"><t:Table t:selectMode=\"15\" t:mergeMode=\"0\" t:dataRequestMode=\"0\" t:pageRowCount=\"100\"><t:ColumnGroup><t:Column t:key=\"deptName\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol0\" /><t:Column t:key=\"personId\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol1\" /><t:Column t:key=\"personNumber\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol2\" /><t:Column t:key=\"personName\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol3\" /><t:Column t:key=\"position\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol4\" /><t:Column t:key=\"enterDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol5\" /><t:Column t:key=\"ruleNumber\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol6\" /><t:Column t:key=\"currQuantity\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol7\" /><t:Column t:key=\"currAvailable\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol8\" /><t:Column t:key=\"lastRest\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol9\" /><t:Column t:key=\"overdue\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol10\" /><t:Column t:key=\"used\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol11\" /><t:Column t:key=\"currExtQuantity\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol12\" /><t:Column t:key=\"currExtAvailable\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol13\" /><t:Column t:key=\"extLastRest\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol14\" /><t:Column t:key=\"extOverdue\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol15\" /><t:Column t:key=\"extUsed\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol16\" /><t:Column t:key=\"sickVacation\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol17\" /><t:Column t:key=\"childVacation\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol18\" /></t:ColumnGroup><t:Head><t:Row t:name=\"header1\" t:height=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\"><t:Cell>$Resource{deptName}</t:Cell><t:Cell>$Resource{personId}</t:Cell><t:Cell>$Resource{personNumber}</t:Cell><t:Cell>$Resource{personName}</t:Cell><t:Cell>$Resource{position}</t:Cell><t:Cell>$Resource{enterDate}</t:Cell><t:Cell>$Resource{ruleNumber}</t:Cell><t:Cell>$Resource{currQuantity}</t:Cell><t:Cell>$Resource{currAvailable}</t:Cell><t:Cell>$Resource{lastRest}</t:Cell><t:Cell>$Resource{overdue}</t:Cell><t:Cell>$Resource{used}</t:Cell><t:Cell>$Resource{currExtQuantity}</t:Cell><t:Cell>$Resource{currExtAvailable}</t:Cell><t:Cell>$Resource{extLastRest}</t:Cell><t:Cell>$Resource{extOverdue}</t:Cell><t:Cell>$Resource{extUsed}</t:Cell><t:Cell>$Resource{sickVacation}</t:Cell><t:Cell>$Resource{childVacation}</t:Cell></t:Row><t:Row t:name=\"header2\" t:height=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\"><t:Cell>$Resource{deptName_Row2}</t:Cell><t:Cell>$Resource{personId_Row2}</t:Cell><t:Cell>$Resource{personNumber_Row2}</t:Cell><t:Cell>$Resource{personName_Row2}</t:Cell><t:Cell>$Resource{position_Row2}</t:Cell><t:Cell>$Resource{enterDate_Row2}</t:Cell><t:Cell>$Resource{ruleNumber_Row2}</t:Cell><t:Cell>$Resource{currQuantity_Row2}</t:Cell><t:Cell>$Resource{currAvailable_Row2}</t:Cell><t:Cell>$Resource{lastRest_Row2}</t:Cell><t:Cell>$Resource{overdue_Row2}</t:Cell><t:Cell>$Resource{used_Row2}</t:Cell><t:Cell>$Resource{currExtQuantity_Row2}</t:Cell><t:Cell>$Resource{currExtAvailable_Row2}</t:Cell><t:Cell>$Resource{extLastRest_Row2}</t:Cell><t:Cell>$Resource{extOverdue_Row2}</t:Cell><t:Cell>$Resource{extUsed_Row2}</t:Cell><t:Cell>$Resource{sickVacation_Row2}</t:Cell><t:Cell>$Resource{childVacation_Row2}</t:Cell></t:Row></t:Head></t:Table><t:SheetOptions><t:MergeBlocks><t:Head><t:Block t:top=\"0\" t:left=\"0\" t:bottom=\"1\" t:right=\"0\" /><t:Block t:top=\"0\" t:left=\"1\" t:bottom=\"1\" t:right=\"1\" /><t:Block t:top=\"0\" t:left=\"2\" t:bottom=\"1\" t:right=\"2\" /><t:Block t:top=\"0\" t:left=\"3\" t:bottom=\"1\" t:right=\"3\" /><t:Block t:top=\"0\" t:left=\"4\" t:bottom=\"1\" t:right=\"4\" /><t:Block t:top=\"0\" t:left=\"5\" t:bottom=\"1\" t:right=\"5\" /><t:Block t:top=\"0\" t:left=\"6\" t:bottom=\"1\" t:right=\"6\" /><t:Block t:top=\"0\" t:left=\"7\" t:bottom=\"0\" t:right=\"11\" /><t:Block t:top=\"0\" t:left=\"12\" t:bottom=\"0\" t:right=\"16\" /><t:Block t:top=\"0\" t:left=\"17\" t:bottom=\"1\" t:right=\"17\" /><t:Block t:top=\"0\" t:left=\"18\" t:bottom=\"1\" t:right=\"18\" /></t:Head></t:MergeBlocks></t:SheetOptions></t:Sheet></Table></DocRoot>";
		
        this.tblMain.setFormatXml(resHelper.translateString("tblMain",tblMainStrXML));
                this.tblMain.putBindContents("yearManageVacationQuery",new String[] {"deptname","personID","personNumber","personName","positionName","pp.enterDate","YVRule.name","currQuantity","currAvailable","lastBalance","overdue","used","currExtQuantity","currExtAvailable","extLastBalance","extOverdue","extUsed","backup.leave_sick","backup.leave_raise"});

        this.tblMain.addRequestRowSetListener(new RequestRowSetListener() {
            public void doRequestRowSet(RequestRowSetEvent e) {
                tblMain_doRequestRowSet(e);
            }
        });

        // combYear
        this.combYear.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent e) {
                try {
                    combYear_itemStateChanged(e);
                } catch (Exception exc) {
                    handUIException(exc);
                } finally {
                }
            }
        });
        // combRule
        this.combRule.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent e) {
                try {
                    combRule_itemStateChanged(e);
                } catch (Exception exc) {
                    handUIException(exc);
                } finally {
                }
            }
        });
        // btnUpdate
        this.btnUpdate.setAction((IItemAction)ActionProxyFactory.getProxy(actionUpdateBalance, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnUpdate.setText(resHelper.getString("btnUpdate.text"));		
        this.btnUpdate.setToolTipText(resHelper.getString("btnUpdate.toolTipText"));
        // btnRefresh
        this.btnRefresh.setAction((IItemAction)ActionProxyFactory.getProxy(actionRefresh, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnRefresh.setText(resHelper.getString("btnRefresh.text"));		
        this.btnRefresh.setToolTipText(resHelper.getString("btnRefresh.toolTipText"));
        // btnPrint
        this.btnPrint.setAction((IItemAction)ActionProxyFactory.getProxy(actionPrint, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnPrint.setText(resHelper.getString("btnPrint.text"));		
        this.btnPrint.setToolTipText(resHelper.getString("btnPrint.toolTipText"));
        // btnPrintPrieve
        this.btnPrintPrieve.setAction((IItemAction)ActionProxyFactory.getProxy(actionPrintPrieve, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnPrintPrieve.setText(resHelper.getString("btnPrintPrieve.text"));		
        this.btnPrintPrieve.setToolTipText(resHelper.getString("btnPrintPrieve.toolTipText"));
        // separator2		
        this.separator2.setOrientation(1);
        // btnCalculate
        this.btnCalculate.setAction((IItemAction)ActionProxyFactory.getProxy(actionCalculate, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnCalculate.setText(resHelper.getString("btnCalculate.text"));		
        this.btnCalculate.setToolTipText(resHelper.getString("btnCalculate.toolTipText"));
        // btnCarryforward
        this.btnCarryforward.setAction((IItemAction)ActionProxyFactory.getProxy(actionCarryforward, new Class[] { IItemAction.class }, getServiceContext()));		
        this.btnCarryforward.setText(resHelper.getString("btnCarryforward.text"));		
        this.btnCarryforward.setToolTipText(resHelper.getString("btnCarryforward.toolTipText"));
        // menuItemPrint
        this.menuItemPrint.setAction((IItemAction)ActionProxyFactory.getProxy(actionPrint, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuItemPrint.setText(resHelper.getString("menuItemPrint.text"));		
        this.menuItemPrint.setMnemonic(80);
        // menuItemPrintView
        this.menuItemPrintView.setAction((IItemAction)ActionProxyFactory.getProxy(actionPrintPrieve, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuItemPrintView.setText(resHelper.getString("menuItemPrintView.text"));		
        this.menuItemPrintView.setMnemonic(86);
        // separator1
        // menuView		
        this.menuView.setText(resHelper.getString("menuView.text"));		
        this.menuView.setToolTipText(resHelper.getString("menuView.toolTipText"));		
        this.menuView.setMnemonic(86);
        // menuRefresh
        this.menuRefresh.setAction((IItemAction)ActionProxyFactory.getProxy(actionRefresh, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuRefresh.setText(resHelper.getString("menuRefresh.text"));		
        this.menuRefresh.setToolTipText(resHelper.getString("menuRefresh.toolTipText"));		
        this.menuRefresh.setMnemonic(82);
        // menuBiz		
        this.menuBiz.setText(resHelper.getString("menuBiz.text"));		
        this.menuBiz.setMnemonic(79);		
        this.menuBiz.setToolTipText(resHelper.getString("menuBiz.toolTipText"));
        // menuUpdateBalance
        this.menuUpdateBalance.setAction((IItemAction)ActionProxyFactory.getProxy(actionUpdateBalance, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuUpdateBalance.setText(resHelper.getString("menuUpdateBalance.text"));		
        this.menuUpdateBalance.setToolTipText(resHelper.getString("menuUpdateBalance.toolTipText"));
        // menuCalculate
        this.menuCalculate.setAction((IItemAction)ActionProxyFactory.getProxy(actionCalculate, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuCalculate.setText(resHelper.getString("menuCalculate.text"));		
        this.menuCalculate.setToolTipText(resHelper.getString("menuCalculate.toolTipText"));
        // menuCarrayforward
        this.menuCarrayforward.setAction((IItemAction)ActionProxyFactory.getProxy(actionCarryforward, new Class[] { IItemAction.class }, getServiceContext()));		
        this.menuCarrayforward.setText(resHelper.getString("menuCarrayforward.text"));		
        this.menuCarrayforward.setToolTipText(resHelper.getString("menuCarrayforward.toolTipText"));
		//Register control's property binding
		registerBindings();
		registerUIState();


    }

	public com.kingdee.bos.ctrl.swing.KDToolBar[] getUIMultiToolBar(){
		java.util.List list = new java.util.ArrayList();
		com.kingdee.bos.ctrl.swing.KDToolBar[] bars = super.getUIMultiToolBar();
		if (bars != null) {
			list.addAll(java.util.Arrays.asList(bars));
		}
		return (com.kingdee.bos.ctrl.swing.KDToolBar[])list.toArray(new com.kingdee.bos.ctrl.swing.KDToolBar[list.size()]);
	}




    /**
     * output initUIContentLayout method
     */
    public void initUIContentLayout()
    {
        this.setBounds(new Rectangle(10, 10, 800, 600));
        this.setLayout(new KDLayout());
        this.putClientProperty("OriginalBounds", new Rectangle(10, 10, 800, 600));
        pnlBottom.setBounds(new Rectangle(10, 51, 770, 536));
        this.add(pnlBottom, new KDLayout.Constraints(10, 51, 770, 536, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_BOTTOM | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT));
        txtRuleName.setBounds(new Rectangle(608, 18, 170, 19));
        this.add(txtRuleName, new KDLayout.Constraints(608, 18, 170, 19, 0));
        kDLabelContainer1.setBounds(new Rectangle(10, 18, 270, 19));
        this.add(kDLabelContainer1, new KDLayout.Constraints(10, 18, 270, 19, 0));
        kDLabelContainer2.setBounds(new Rectangle(305, 18, 270, 19));
        this.add(kDLabelContainer2, new KDLayout.Constraints(305, 18, 270, 19, 0));
        //pnlBottom
pnlBottom.setLayout(new BorderLayout(0, 0));        pnlBottom.add(tblMain, BorderLayout.CENTER);
        //kDLabelContainer1
        kDLabelContainer1.setBoundEditor(combYear);
        //kDLabelContainer2
        kDLabelContainer2.setBoundEditor(combRule);

    }


    /**
     * output initUIMenuBarLayout method
     */
    public void initUIMenuBarLayout()
    {
        this.menuBar.add(menuFile);
        this.menuBar.add(menuView);
        this.menuBar.add(MenuService);
        this.menuBar.add(menuBiz);
        this.menuBar.add(menuTool);
        this.menuBar.add(menuHelp);
        //menuFile
        menuFile.add(menuItemPageSetup);
        menuFile.add(kDSeparator1);
        menuFile.add(menuItemPrint);
        menuFile.add(menuItemPrintView);
        menuFile.add(separator1);
        menuFile.add(menuItemExitCurrent);
        //menuView
        menuView.add(menuRefresh);
        //MenuService
        MenuService.add(MenuItemKnowStore);
        MenuService.add(MenuItemAnwser);
        MenuService.add(SepratorService);
        MenuService.add(MenuItemRemoteAssist);
        //menuBiz
        menuBiz.add(menuUpdateBalance);
        menuBiz.add(menuCalculate);
        menuBiz.add(menuCarrayforward);
        //menuTool
        menuTool.add(menuItemSendMessage);
        menuTool.add(menuItemCalculator);
        //menuHelp
        menuHelp.add(menuItemHelp);
        menuHelp.add(kDSeparator12);
        menuHelp.add(menuItemRegPro);
        menuHelp.add(menuItemAbout);
        menuHelp.add(menuItemPersonalSite);
        menuHelp.add(helpseparatorDiv);
        menuHelp.add(menuitemProductval);
        menuHelp.add(kDSeparatorProduct);

    }

    /**
     * output initUIToolBarLayout method
     */
    public void initUIToolBarLayout()
    {
        this.toolBar.add(btnPageSetup);
        this.toolBar.add(btnUpdate);
        this.toolBar.add(btnRefresh);
        this.toolBar.add(btnPrint);
        this.toolBar.add(btnPrintPrieve);
        this.toolBar.add(separator2);
        this.toolBar.add(btnCalculate);
        this.toolBar.add(btnCarryforward);


    }

	//Regiester control's property binding.
	private void registerBindings(){		
	}
	//Regiester UI State
	private void registerUIState(){		
	}
	public String getUIHandlerClassName() {
	    return "com.kingdee.eas.hr.time.app.YearVactionListUIHandler";
	}
	public IUIActionPostman prepareInit() {
		IUIActionPostman clientHanlder = super.prepareInit();
		if (clientHanlder != null) {
			RequestContext request = new RequestContext();
    		request.setClassName(getUIHandlerClassName());
			clientHanlder.setRequestContext(request);
		}
		return clientHanlder;
    }
	
	public boolean isPrepareInit() {
    	return false;
    }
    protected void initUIP() {
        super.initUIP();
    }



	
	

    /**
     * output setDataObject method
     */
    public void setDataObject(IObjectValue dataObject)
    {
        IObjectValue ov = dataObject;        	    	
        super.setDataObject(ov);
        this.yearManageVacationQuery = (EntityViewInfo)ov;
    }

    /**
     * output loadFields method
     */
    public void loadFields()
    {
        dataBinder.loadFields();
    }
    /**
     * output storeFields method
     */
    public void storeFields()
    {
		dataBinder.storeFields();
    }

	/**
	 * ????????????
	 */
	protected void registerValidator() {
    	getValidateHelper().setCustomValidator( getValidator() );		
	}



    /**
     * output setOprtState method
     */
    public void setOprtState(String oprtType)
    {
        super.setOprtState(oprtType);
    }

    /**
     * output tblMain_doRequestRowSet method
     */
    protected void tblMain_doRequestRowSet(RequestRowSetEvent e)
    {
        if (this.yearManageVacationQuery != null) {
            int start = ((Integer)e.getParam1()).intValue();
            int length = ((Integer)e.getParam2()).intValue() - start + 1;
            try {
                IQueryExecutor exec = this.getQueryExecutor(this.yearManageVacationQueryPK, this.yearManageVacationQuery);
                IRowSet rowSet = exec.executeQuery(start,length);
                e.setRowSet(rowSet);
                onGetRowSet(rowSet);
            } catch (Exception ee) {
                handUIException(ee);
            }
        }
    }

    /**
     * output combYear_itemStateChanged method
     */
    protected void combYear_itemStateChanged(java.awt.event.ItemEvent e) throws Exception
    {
    }

    /**
     * output combRule_itemStateChanged method
     */
    protected void combRule_itemStateChanged(java.awt.event.ItemEvent e) throws Exception
    {
    }


    /**
     * output getQueryExecutor method
     */
    protected IQueryExecutor getQueryExecutor(IMetaDataPK queryPK,EntityViewInfo viewInfo)
    {
        IQueryExecutor exec = QueryExecutorFactory.getRemoteInstance(queryPK);
        exec.setObjectView(viewInfo);
        return exec;
    }
    /**
     * output getSelectors method
     */
    public SelectorItemCollection getSelectors()
    {
        SelectorItemCollection sic = new SelectorItemCollection();
        sic.add(new SelectorItemInfo("deptname"));
        sic.add(new SelectorItemInfo("personID"));
        sic.add(new SelectorItemInfo("personNumber"));
        sic.add(new SelectorItemInfo("personName"));
        sic.add(new SelectorItemInfo("positionName"));
        sic.add(new SelectorItemInfo("currQuantity"));
        sic.add(new SelectorItemInfo("currAvailable"));
        sic.add(new SelectorItemInfo("lastBalance"));
        sic.add(new SelectorItemInfo("overdue"));
        sic.add(new SelectorItemInfo("used"));
        sic.add(new SelectorItemInfo("YVRule.name"));
        sic.add(new SelectorItemInfo("pp.enterDate"));
        sic.add(new SelectorItemInfo("currExtQuantity"));
        sic.add(new SelectorItemInfo("currExtAvailable"));
        sic.add(new SelectorItemInfo("extLastBalance"));
        sic.add(new SelectorItemInfo("extOverdue"));
        sic.add(new SelectorItemInfo("extUsed"));
        sic.add(new SelectorItemInfo("backup.leave_sick"));
        sic.add(new SelectorItemInfo("backup.leave_raise"));
        return sic;
    }        
    	

    /**
     * output actionUpdateBalance_actionPerformed method
     */
    public void actionUpdateBalance_actionPerformed(ActionEvent e) throws Exception
    {
    }
    	

    /**
     * output actionRefresh_actionPerformed method
     */
    public void actionRefresh_actionPerformed(ActionEvent e) throws Exception
    {
    }
    	

    /**
     * output actionCalculate_actionPerformed method
     */
    public void actionCalculate_actionPerformed(ActionEvent e) throws Exception
    {
    }
    	

    /**
     * output actionCarryforward_actionPerformed method
     */
    public void actionCarryforward_actionPerformed(ActionEvent e) throws Exception
    {
    }
    	

    /**
     * output actionPrint_actionPerformed method
     */
    public void actionPrint_actionPerformed(ActionEvent e) throws Exception
    {
    }
    	

    /**
     * output actionPrintPrieve_actionPerformed method
     */
    public void actionPrintPrieve_actionPerformed(ActionEvent e) throws Exception
    {
    }
	public RequestContext prepareActionUpdateBalance(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionUpdateBalance() {
    	return false;
    }
	public RequestContext prepareActionRefresh(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionRefresh() {
    	return false;
    }
	public RequestContext prepareActionCalculate(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionCalculate() {
    	return false;
    }
	public RequestContext prepareActionCarryforward(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionCarryforward() {
    	return false;
    }
	public RequestContext prepareActionPrint(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionPrint() {
    	return false;
    }
	public RequestContext prepareActionPrintPrieve(IItemAction itemAction) throws Exception {
			RequestContext request = new RequestContext();		
		if (request != null) {
    		request.setClassName(getUIHandlerClassName());
		}
		return request;
    }
	
	public boolean isPrepareActionPrintPrieve() {
    	return false;
    }

    /**
     * output ActionUpdateBalance class
     */     
    protected class ActionUpdateBalance extends ItemAction {     
    
        public ActionUpdateBalance()
        {
            this(null);
        }

        public ActionUpdateBalance(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            _tempStr = resHelper.getString("ActionUpdateBalance.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionUpdateBalance.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionUpdateBalance.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionUpdateBalance", "actionUpdateBalance_actionPerformed", e);
        }
    }

    /**
     * output ActionRefresh class
     */     
    protected class ActionRefresh extends ItemAction {     
    
        public ActionRefresh()
        {
            this(null);
        }

        public ActionRefresh(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            this.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("F5"));
            _tempStr = resHelper.getString("ActionRefresh.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionRefresh.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionRefresh.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionRefresh", "actionRefresh_actionPerformed", e);
        }
    }

    /**
     * output ActionCalculate class
     */     
    protected class ActionCalculate extends ItemAction {     
    
        public ActionCalculate()
        {
            this(null);
        }

        public ActionCalculate(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            _tempStr = resHelper.getString("ActionCalculate.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionCalculate.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionCalculate.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionCalculate", "actionCalculate_actionPerformed", e);
        }
    }

    /**
     * output ActionCarryforward class
     */     
    protected class ActionCarryforward extends ItemAction {     
    
        public ActionCarryforward()
        {
            this(null);
        }

        public ActionCarryforward(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            _tempStr = resHelper.getString("ActionCarryforward.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionCarryforward.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionCarryforward.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionCarryforward", "actionCarryforward_actionPerformed", e);
        }
    }

    /**
     * output ActionPrint class
     */     
    protected class ActionPrint extends ItemAction {     
    
        public ActionPrint()
        {
            this(null);
        }

        public ActionPrint(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            this.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl P"));
            _tempStr = resHelper.getString("ActionPrint.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionPrint.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionPrint.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionPrint", "actionPrint_actionPerformed", e);
        }
    }

    /**
     * output ActionPrintPrieve class
     */     
    protected class ActionPrintPrieve extends ItemAction {     
    
        public ActionPrintPrieve()
        {
            this(null);
        }

        public ActionPrintPrieve(IUIObject uiObject)
        {     
		super(uiObject);     
        
            String _tempStr = null;
            this.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl shift P"));
            _tempStr = resHelper.getString("ActionPrintPrieve.SHORT_DESCRIPTION");
            this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionPrintPrieve.LONG_DESCRIPTION");
            this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
            _tempStr = resHelper.getString("ActionPrintPrieve.NAME");
            this.putValue(ItemAction.NAME, _tempStr);
        }

        public void actionPerformed(ActionEvent e)
        {
        	getUIContext().put("ORG.PK", getOrgPK(this));
            innerActionPerformed("eas", AbstractYearVactionListUI.this, "ActionPrintPrieve", "actionPrintPrieve_actionPerformed", e);
        }
    }

    /**
     * output getMetaDataPK method
     */
    public IMetaDataPK getMetaDataPK()
    {
        return new MetaDataPK("com.kingdee.eas.hr.time.client", "YearVactionListUI");
    }




}